package ynu.edu.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单项传输对象
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderItemDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单项ID
     */
    private Integer orderItemId;

    /**
     * 订单ID
     */
    private Integer orderId;

    /**
     * 食品ID
     */
    private Integer foodId;

    /**
     * 食品名称
     */
    private String foodName;

    /**
     * 食品图片
     */
    private String foodImg;

    /**
     * 食品价格
     */
    private BigDecimal foodPrice;

    /**
     * 购买数量
     */
    private Integer quantity;

    /**
     * 小计金额
     */
    private BigDecimal subtotal;
} 